<template>
	<view class="main">
		<view class="main_1">
			<view class="text">
				<span>学号：{{ studentID }}</span><br>
				<span>姓名：{{ studentName }}</span><br>
				<span>班级：{{ studentClass }}</span>
			</view>
			<image style="width: 710rpx;border-radius: 10px;" src="../../static/images/xiaoyuanka/zheng.jpg" mode=""></image>
		</view>
		<view class="main_2">
			<image style="width: 710rpx;border-radius: 10px;" src="../../static/images/xiaoyuanka/fan.jpg" mode=""></image>
		</view>
		
	</view>
</template>

<script>
	export default{
		data(){
			return{
				studentID:'',
				studentName:'',
				studentClass:''
			}
		},
		onLoad(){
			this.getInfo()
		},
		methods:{
			getInfo(){
				var value=uni.getStorageSync('myinfo')
				this.studentName=value.matriculate.name
				this.studentID=value.matriculate.studentId
				this.studentClass=value.matriculate.className
			}
		}
	}
</script>

<style>
	.main_1{
		width: 100%;
		height: 450rpx;
		margin-top: 20rpx;
		text-align: center;
		position:relative;
		border-radius: 10px;
	}
	.main_2{
		width: 100%;
		height: 450rpx;
		margin-top: 100rpx;
		text-align: center;
		position:relative;
		border-radius: 10px;
	}
	.text{
		position:absolute;
		margin-top:60px ;
		margin-left:235px;
		font-size: 25;
		text-align: left
	}
</style>
